package cn.edu.dgut.kk.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;

public class DataSourceConfig {

    @Bean
    @kk
    @Conditional(ConditionJy.class)//限定@Bean的有效性
    public DataSource dataSource() {
        return new DataSource();
    }

}
